package megadict.draft.index;

import java.io.File;

import org.junit.Test;


public class DetermineFinalBlockLengthTest {

    @Test
    public void testDeterminingFinalBlockLength() {
        File fora = new File("C:/test/av.index");
        
        int length = (int) fora.length();
        int blockSize = 8*1024;
        
        int numOfBlockRead = (length/blockSize) + 1;
        
        int remaining = length % blockSize;
        
        System.out.println(length);
        System.out.println(numOfBlockRead);
        System.out.println(remaining);
    }
    
}
